import request from '@/utils/request'
// 提现管理-------获取列表
export function getCashList({ status, page }) {
  return request({
    url: '/api/back/offline/order',
    method: 'get',
    params: { type: 'withdrawal', status, page, per_page: 10 }
  })
}
// 提现管理-------提现操作
export function cashOptions({ status, id, img, condition, remark }) {
  return request({
    url: '/api/back/offline/order',
    method: 'post',
    data: { status, id, img, condition, remark },
    params: { type: 'withdrawal' }
  })
}
// 删除
export function deleteCashItem(id) {
  return request({
    url: '/api/back/offline/order',
    method: 'post',
    params: { type: 'withdrawalDelete' },
    data: { id }
  })
}
